package com.yifeng.repo.controller.statemachine.fsm.audit.worker.action;

import com.alibaba.cola.statemachine.Action;
import com.yifeng.repo.controller.statemachine.fsm.audit.biz.AuditContext;
import com.yifeng.repo.controller.statemachine.fsm.audit.biz.AuditEventEnum;
import com.yifeng.repo.controller.statemachine.fsm.audit.biz.AuditStateEnum;
import lombok.extern.slf4j.Slf4j;

/**
 * Created by daibing on 2024/9/20.
 */
@Slf4j
public class AuditPassAction implements Action<AuditStateEnum, AuditEventEnum, AuditContext> {

    @Override
    public void execute(AuditStateEnum from, AuditStateEnum to, AuditEventEnum event, AuditContext context) {
        log.info("passAction from {}, to {}, on event {}, id:{}", from, to, event, context.getId());
    }
}
